import { useSearchParams } from "react-router-dom"

const Home = () => {
  const [params] = useSearchParams()

  return (
    <div>
      <h1>Home</h1>
      <h2>我是login传递的参数{params.get('id')}-{params.get('name')}</h2>
    </div>
  )
}

export default Home